package home.service;

import java.util.List;

import net.sf.json.JSONObject;

import home.model.PageBean;
import home.model.Users;
import home.model.minUsers;

public interface UsersService {
	public String encoderByMd5(String password);
	public boolean checklogin(Object value1,Object value2);
	public Users getUsers(String username);
	public Users getUsers(int id);
	public Users addUsers(String username, String password, String salt, String name, String main_type, String sex);
	public List<Users> getAllUsers();
	public boolean deleteUsersById(int id);
	public boolean saveUsers(Users users);
	public String nadianSome(Users users, String type);
	public List<minUsers> searchUsers(String location);
	public Users randUsers();
	public String winGetSome(Users win, Users lost, String type);
	public PageBean queryForPage(int pageSize,int currentPage, String like);
	
	public minUsers getMinUsers(int id);
	public PageBean getTop(int page, String topType);
	
}
